package cn.yitun.chat.yitunservercommonlib.converter.dto2vo.contact;

import cn.yitun.chat.yitunservercommonlib.dataentity.dto.contact.ContactCategoryDto;
import cn.yitun.chat.yitunservercommonlib.dataentity.vo.contact.ContactCategoryVo;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(componentModel = "spring")
public interface ContactCategoryDto2VoConverter {

    ContactCategoryDto2VoConverter INSTANCE = Mappers.getMapper(ContactCategoryDto2VoConverter.class);

    ContactCategoryDto vo2dto(ContactCategoryVo vo);

    List<ContactCategoryDto> vo2dto(List<ContactCategoryVo> voList);

    @InheritInverseConfiguration
    ContactCategoryVo dto2vo(ContactCategoryDto dto);

    @InheritInverseConfiguration
    List<ContactCategoryVo> dto2vo(List<ContactCategoryDto> dtoList);

}
